package com.maezia.tdr.common.exception;

import com.maezia.tdr.common.enums.StatusCodeEnum;
import lombok.Getter;

@Getter
public class DriveException extends Exception {

    private StatusCodeEnum codeEnum;

    public DriveException() {}

    public DriveException(String message) {
        super(message);
    }

    public DriveException(StatusCodeEnum codeEnum) {
        super(codeEnum.getMessage());
        this.codeEnum = codeEnum;
    }
}
